package cs304.p3.library.service;

import java.sql.Connection;

import cs304.p3.library.dao.BookDao;
import cs304.p3.library.dao.BorrowerDao;
import cs304.p3.library.dao.FineDao;
import cs304.p3.library.dao.HoldRequestDao;

public abstract class Service {
	protected Connection connection;
	protected BookDao bookDao;
	protected BorrowerDao borrowerDao;
	protected FineDao fineDao;
	protected HoldRequestDao holdRequestDao;
	
	public void setConnection(Connection connection) {
		this.connection = connection;
	}
	
	public void setBookDao(BookDao bookDao) {
		this.bookDao = bookDao;
	}
	
	public void setBorrowerDao(BorrowerDao borrowerDao) {
		this.borrowerDao = borrowerDao;
	}
	
	public void setFineDao(FineDao fineDao) {
		this.fineDao = fineDao;
	}
	
	public void setHoldRequestDao(HoldRequestDao holdRequestDao) {
		this.holdRequestDao = holdRequestDao;
	}
}
